package main.java.Fzy.Test.demo;

public class Square extends Rectangle{

    public Square() {
    }

    public Square(double height, double wide) {
        super(height, wide);
    }

    public static void main(String[] args) {

        Square square = new Square();
        square.height = 100.0;
        square.wide = 20.2;
        System.out.println("面积："+square.area());
        System.out.println("周长"+square.perimeter());


    }
}
